<div class="fly-home fly-panel"
  style="background-image: url('{$User.cover ? $User.cover : \'/static/home/res/images/cover.jpg\'}');background-size: 100%;background-repeat: no-repeat;">
  <img src="{$User.avatar ? $User.avatar : '/static/home/res/images/avatar/default.png'}" alt="{$User.nickname}">
  <!-- 认证 -->
  {if($User.auth == 1)}
  <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
  {/if}
  <h1>
    <!-- 昵称 -->
    {$User.nickname}

    <!-- 性别 == 男 -->
    {if($User.sex == 1)}
    <i class="iconfont icon-nan"></i>
    {/if}

    <!-- 性别 == 女 -->
    {if($User.sex == 2)}
    <i class="iconfont icon-nv"></i>
    {/if}

    <!-- 会员 -->
    {if($User.vip)}
    <i class="layui-badge fly-badge-vip">VIP {$User.vip}</i>
    {/if}
    <!--
      <span style="color:#c00;">（管理员）</span>
      <span style="color:#5FB878;">（社区之光）</span>
      <span>（该号已被封）</span>
      -->
  </h1>

  <!-- 认证 -->
  {if($User.auth == 1)}
  <p style="padding: 10px 0; color: #5FB878;">认证信息：{$User.nickname}</p>
  {else /}
  <p style="padding: 10px 0; color: #c00;">认证信息：未认证</p>
  {/if}
  <p class="fly-home-info">
    <!-- 积分 -->
    <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">{$User.point} 积分</span>

    <!-- 时间 -->
    <i class="iconfont icon-shijian"></i><span>{$User.createtime} 加入</span>

    <!-- 城市 -->
    {if($User.province)}
    <i class="iconfont icon-chengshi"></i><span>来自 {$User.region_text}</span>
    {else /}
    <i class="iconfont icon-chengshi"></i><span>保密</span>
    {/if}
  </p>

  <!-- 简介 -->
  {if($User.content)}
  <p class="fly-home-sign">（{$User.content}）</p>
  {else /}
  <p class="fly-home-sign">（这个人很懒，什么都没留下）</p>
  {/if}

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$User.nickname} 最近的提问</h3>
        <ul class="jie-row">
          {if($PostList)}
          {foreach $PostList as $item}
          <li>
            <span class="fly-jing">{$item.cate.name}</span>
            <a href="" class="jie-title"> {$item.title}</a>
            <i>{$item.createtime|date="Y-m-d H:i"}</i>
            <em class="layui-hide-xs">{$item.visit_total}阅/{$item.comment_total}答</em>
          </li>
          {/foreach}
          {else /}
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
              style="font-size:14px;">没有发表任何求解</i></div>
          {/if}
        </ul>
        {$PostList|raw}
      </div>
    </div>

    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$User.nickname} 最近的回答</h3>
        <ul class="home-jieda">
          {if($CommentList)}
            {foreach $CommentList as $item}
            <li>
              <p>
                <span>{$item.createtime|date="Y-m-d H:i"}</span>
                在<a href="" target="_blank">{$item.post.title}</a>中回答：
              </p>
              <div class="home-dacontent">
                {$item.content}
              </div>
            </li>
            {/foreach}
          {else /}
            <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
          {/if}
        </ul>
        {$CommentList|raw}
      </div>
    </div>
  </div>
</div>